#include <vector>
#include "structs.h"

//#define ELEM std::vector<particle *>
#define ELEM int

class NeighborTable
{
private:
	ELEM *Table;
	int i, j, k;
	int Elem_num;

	double i_min, i_max;
	double j_min, j_max;
	double k_min, k_max;
	double step;

	particle V;
public:
	 NeighborTable();
	~NeighborTable();
	void CreateTable(int _i, int _j, int _k);
	void DeleteTable();
	ELEM * GetElem(int _i, int _j, int _k);
	int Init(double _i_max, double _i_min, 
			 double _j_max, double _j_min,
			 double _k_max, double _k_min,
			 double _step );
};